package com.rslai.commons.validator.jsonvalidator.matchers;

/**
 * Json Matchers
 */
public class JsonMatchers {

    /**
     * max
     * @param maxNumber maxNumber
     * @return matcher
     */
    public static org.hamcrest.Matcher<Number> max(Number maxNumber) {
        return MaxNumber.max(maxNumber);
    }

    /**
     * min
     * @param minNumber minNumber
     * @return matcher
     */
    public static org.hamcrest.Matcher<Number> min(Number minNumber) {
        return MinNumber.min(minNumber);
    }

    /**
     * matches
     * @param regex 匹配正则
     * @return matcher
     */
    public static org.hamcrest.Matcher<String> matches(String regex) {
        return RegexMatcher.matches(regex);
    }

}
